package com.gh.config;

import com.baomidou.mybatisplus.core.injector.ISqlInjector;
import com.baomidou.mybatisplus.extension.injector.methods.LogicDeleteByIdWithFill;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author Eric
 * @Date 2021/6/3 22:26
 * @Version 1.0
 */
@Configuration
public class HospitalSetConfig {
    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
//    /**
//     * logic to delete
//     * @return
//     */
//    @Bean
//    public LogicDeleteByIdWithFill sqlInjector(){
//        return new LogicDeleteByIdWithFill();
//    }
}
